Delete file in python Using the pathlib module

31

import pathlib
file=pathlib.path("test/new_file.txt")
file.unlink()

Comments

Submit
0 Comments